package com.ruoyi.web.service;



import com.ruoyi.web.core.config.WechatConfig;
import com.ruoyi.web.entity.Result;
import com.ruoyi.web.entity.WxPay;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * 押金类型支付 DepositService
 * @author zdh
 * @date 2020-07-03
 */
public interface DepositService {

    /**
     * 获取支付数据
     * @param wxPay wxPay
     * @param req req
     * @return ReturnBase
     */
    Result getPayInfo(WxPay wxPay, HttpServletRequest req);

    /**
     * 微信支付押金模式响通知
     * @param req 请求对象
     * @param resp 响应对象
     */
    void wxDepositNotify (HttpServletRequest req, HttpServletResponse resp) throws IOException;

    /**
     * 支付成功回调-写入用户信息通知 --测试
     * @param map
     * @return
     */
    boolean weChatUserNotify(Map<String,String> map);






}
